<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title></title>
    <script type="text/javascript">
   		document.addEventListener('plusready', function(){
   			//console.log("所有plus api都应该在此事件发生后调用，否则会出现plus is undefined。")
   		});
    </script>
	<link rel="stylesheet" href="assets/css/main.css" />
	<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=OKSBZ-CQD6S-NAPOZ-6ASY5-AXUNT-YDFQ2"
	    crossorigin="anonymous"></script>
</head>
<body class="index">
<div id="page-wrapper">
	     <header id="header" class="alt">
	     	<h1 id="logo"><a href="index.html">Twenty <span>by HTML5 UP</span></a></h1>
	     	<nav id="nav">
	     		<nav id="nav">
	     			<ul>
	     				<li class="current"><a href="index.html">返回首页</a></li>
	     				<li class="current"><a href="login/NewLogin.html">退出登录</a></li>
	     				<li class="submenu">
	     					<a href="#" onclick="show(1)">基础数据管理</a>
	     					<ul>
	     						<li><a href="mainshow.html?id=1">市场信息查看</a></li>
	     						<li><a href="mainshow.html?id=2">脚标机信息查看</a></li>
	     						<li><a href="mainshow.html?id=3">ID卡数据查看</a></li>
	     						<li><a href="mainshow.html?id=4">销售终端信息查看</a></li>
	     						<li><a href="mainshow.html?id=5">禽类信息信息查看</a></li>
	     					</ul>
	     				</li>
	     				<li class="submenu">
	     					<a href="#">脚标机发放回收管理</a>
	     					<ul>
	     						<li><a href="mainshow.html?id=6">脚标机发放信息查看</a></li>
	     						<li><a href="mainshow.html?id=7">脚标机回收信息查看</a></li>
	     						<!--<li><a href="mainshow.html?id=8">脚标机用户更新管理</a></li>-->
	     					</ul>
	     				</li>
	     				<li class="submenu">
	     					<a href="#">脚标机监控</a>
	     					<ul>
	     						<li><a href="mainshow.html?id=9">脚标机监控信息查看</a></li>
	     						<li><a href="mainshow.html?id=10">报警记录信息查看</a></li>
	     					</ul>
	     				</li>
	     				<li class="submenu">
	     					<a href="#">脚标机报废维修管理</a>
	     					<ul>
	     						<li><a href="mainshow.html?id=11">脚标机报废信息查看</a></li>
	     						<li><a href="mainshow.html?id=12">脚标机维修信息查看</a></li>
	     					</ul>
	     				</li>
	     				<li class="submenu">
	     					<a href="#">ID卡发放回收管理</a>
	     					<ul>
	     						<li><a href="mainshow.html?id=15">ID卡发放记录信息查看</a></li>
	     						<li><a href="mainshow.html?id=16">ID卡回收记录信息查看</a></li>
	     					</ul>
	     				</li>
	     				<li class="submenu">
	     					<a href="#">条形码发放回收管理</a>
	     					<ul>
	     						<li><a href="mainshow.html?id=15">条形码发放信息查看</a></li>
	     						<li><a href="mainshow.html?id=16">条形码回收信息查看</a></li>
	     					</ul>
	     				</li>
	     				<li class="submenu">
	     					<a href="#">贴标信息管理</a>
	     					<ul>
	     						<li><a href="mainshow.html?id=17">贴标信息查看</a></li>
	     					</ul>
	     				</li>
	     			</ul>
	     	</nav>
	     </header>
		<section id="banner">
			<div class="inner">
				<header>
					<h2 id="title"></h2>
				</header>
				<footer>
					<ul class="buttons vertical">
						<li><a href="javascript:history.back(-1)" class="button fit scrolly"><!--[-->返回上级<!--]--></a></li>
					</ul>
				</footer>
			</div>
		</section>
	<!-- Main -->
	    <br /><br />
		<article id="main1">
			<header class="special container">
				<span class="icon featured fa-check"></span>
				<br />
				<div class="content" style="margin-top: 20px;">
					<form id="form">
						
					</form>
				</div>
				
			</header>
		</article>
		
	<!-- Footer -->
		<footer id="footer">
			<ul class="copyright">
				<li>Copyright&copy;2020.</li>
				<li>By Hanqy kabit@sina.cn.</li>

			</ul>
		</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollgress.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script src="https://cdn.bootcss.com/echarts/4.2.1-rc1/echarts.min.js"></script>
<script>
	var startPointMap=function(){
		var startPos = new qq.maps.LatLng(23.16,113.23)
		// 开始画地图
		var map = new qq.maps.Map(document.getElementById("allmap"), {
		    center: new qq.maps.LatLng(23.16,113.23),
		    zoom: 4
		});
		var infoWin1 = new qq.maps.InfoWindow({
		        map: map
		});
	}
	if(window.location.search.substring(4)==1){
		$("#title").append("屠宰场明细");
		$("#form").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="屠宰场ID" value="9" readonly="true"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="屠宰场名称" value="江街屠宰场" readonly="true"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="负责人" value="root" readonly="true"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="屠宰场地址" value="广州海珠区滨江街道" readonly="true"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="经度" value="113.23" readonly="true"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="纬度" value="23.16" readonly="true"/>
			</div>
		</div>

		<div class="row 50%" style="margin-top:20px">
			<div class="12u">
				<div id="allmap" style="width: 19.75rem;height: 12.5rem;" readonly="true"></div>
			</div>
		</div>
		`);
		startPointMap();
	}else if(window.location.search.substring(4)==2){
		$("#title").append("屠宰场修改");
		$("#form").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="屠宰场ID" value="9"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="屠宰场名称" value="江街屠宰场"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="负责人" value="root"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="屠宰场地址" value="广州海珠区滨江街道"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="经度" value="113.23"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="纬度" value="23.16"/>
			</div>
		</div>
		
		<div class="row 50%" style="margin-top:20px">
			<div class="12u">
				<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
			</div>
		</div>
		`);
		startPointMap();
	}else if(window.location.search.substring(4,5)==3){
		$("#title").append("脚标机明细");
		$.ajax({
		     url: URL+"findBarcodeMachineStatusById?id="+window.location.search.substring(13),
		     type: "get",
		     success: function (data) {
		          console.log(data)
				  var state;
				  if(data.state==0){
				  		state="离线"
				  }else if(data.state==1){
				  		state="正常"
				  }else if(data.state==2){
				  		state="卡纸"
				  }else{
				  		state="缺纸"
				  }
                  $("#form").append(`
                  <div class="row 50%">
                  	<div class="6u 12u(mobile)">
                  		<input type="text" name="name" placeholder="" value="条码机ID:`+data.barcodeMachineId+`" readonly="readonly"/>
                  	</div>
					<div class="6u 12u(mobile)">
						<input type="text" name="name" placeholder="" value="条码机状态:`+state+`" readonly="readonly"/>
					</div>
                  </div>
                  <div class="row 50%">
                  	<div class="6u 12u(mobile)">
                  		<input type="text" name="name"  value="条形码剩余:`+data.barcodeSurplus+`" readonly="readonly"/>
                  	</div>
                  	<div class="6u 12u(mobile)">
                  		<input type="text" name="email"  value="创建人:`+data.createBy+`" readonly="readonly"/>
                  	</div>
                  </div>
                  <div class="row 50%">
                  	<div class="12u">
                  		<input type="text" name="subject"  value="创建日期:`+data.createDate+`" readonly="readonly"/>
                  	</div>
                  	<div class="12u">
                  		<input type="text" name="subject"  value="ID:`+data.id+`" readonly="readonly"/>
                  	</div>
                  	<div class="12u">
                  		<input type="text" name="subject"  value="用户ID:`+data.userId+`" readonly="readonly"/>
                  	</div>
                  </div>
                  <div class="row 50%">
                  	<div class="12u">
                  		<input type="text" name="subject"  value="阈:`+data.threshold+`" readonly="readonly"/>
                  	</div>
                  	<div class="12u">
                  		<input type="text" name="subject"  value="上线时间:`+data.loginDate+`" readonly="readonly"/>
                  	</div>
                  	<div class="12u">
                  		<input type="text" name="subject"  value="离线时间:`+data.offlineTime+`" readonly="readonly"/>
                  	</div>
                  </div>
                  
                  <div class="row 50%" style="margin-top:20px">
                  	<div class="12u">
                  		<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
                  	</div>
                  </div>
                  `);
			}
		});
	}else if(window.location.search.substring(4,5)==4){
		$("#title").append("脚标机发放信息详情");
		$.ajax({
		     url: URL+"/barcodeMachineGrant/"+window.location.search.substring(13),
		     type: "get",
		     success: function (data) {
		          console.log(data)
		          $("#form").append(`
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name" placeholder="" value="ID:`+data.object.id+`" readonly="readonly"/>
		          	</div>
					<div class="6u 12u(mobile)">
						<input type="text" name="name" placeholder="" value="条码机ID:`+data.object.barcodeMachineId+`" readonly="readonly"/>
					</div>
		          </div>
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name"  value="发放档口ID:`+data.object.stallsId+`" readonly="readonly"/>
		          	</div>
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="email"  value="发放时间:`+data.object.grantDate+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="发放人员ID:`+data.object.grantPersonId+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="领取人员ID:`+data.object.receivePersonId+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="状态:`+data.object.status+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="押金（元）:`+data.object.deposit+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="纸质协议编号:`+data.object.agreementNumber+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="创建人ID:`+data.object.createBy+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="创建时间:`+data.object.createTime+`" readonly="readonly"/>
		          	</div>
					<div class="12u">
						<input type="text" name="subject"  value="创建人:`+data.object.createName+`" readonly="readonly"/>
					</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="发放人:`+data.object.deliverName+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="回收人:`+data.object.recyclingName+`" readonly="readonly"/>
		          	</div>
		          </div>
		          `);
			}
		});
	}else if(window.location.search.substring(4,5)==5){
		$("#title").append("脚标机回收信息详情");
		$.ajax({
		     url: URL+"/barcodeMachineRecovery/"+window.location.search.substring(13),
		     type: "get",
		     success: function (data) {
		          console.log(data)
		          $("#form").append(`
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name" placeholder="" value="ID:`+data.object.id+`" readonly="readonly"/>
		          	</div>
					<div class="6u 12u(mobile)">
						<input type="text" name="name" placeholder="" value="条码机ID:`+data.object.barcodeMachineId+`" readonly="readonly"/>
					</div>
		          </div>
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name"  value="发放档口ID:`+data.object.stallsId+`" readonly="readonly"/>
		          	</div>
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="email"  value="回收时间:`+data.object.recoveryDate+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="送回人员ID:`+data.object.sendBackPersonId+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="退还金额（元）:`+data.object.deposit+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="创建人ID:`+data.object.createBy+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="创建时间:`+data.object.createTime+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="状态:`+data.object.status+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="回收人名称:`+data.object.recyclingName+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="送回人名称:`+data.object.sendName+`" readonly="readonly"/>
		          	</div>
					<div class="12u">
						<input type="text" name="subject"  value="创建人:`+data.object.createName+`" readonly="readonly"/>
					</div>
		          `);
			}
		});
	}else if(window.location.search.substring(4,5)==6){
		$("#title").append("ID卡发放记录信息详情");
		$.ajax({
		     url: URL+"/idCardGrant/id?id="+window.location.search.substring(13),
		     type: "get",
		     success: function (data) {
		          console.log(data)
		          $("#form").append(`
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name" placeholder="" value="ID卡编号:`+data.object.cardId+`" readonly="readonly"/>
		          	</div>
					<div class="6u 12u(mobile)">
						<input type="text" name="name" placeholder="" value="发放时间:`+data.object.grantDate+`" readonly="readonly"/>
					</div>
		          </div>
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name"  value="发放人角色:`+data.object.deliverRoteName+`" readonly="readonly"/>
		          	</div>
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="email"  value="回收人角色:`+data.object.getRoteName+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="创建人:`+data.object.createName+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="发放人:`+data.object.deliverName+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="退款金额(元):`+data.object.deposit+`" readonly="readonly"/>
		          	</div>
		          </div>
		      `)
			}
		});	
	
	}else if(window.location.search.substring(4,5)==7){
		$("#title").append("ID卡回收记录信息详情");
		$.ajax({
		     url: URL+"/idCardRecovery/id?id="+window.location.search.substring(13),
		     type: "get",
		     success: function (data) {
		          console.log(data)
		          $("#form").append(`
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name" placeholder="" value="ID卡编号:`+data.object.cardId+`" readonly="readonly"/>
		          	</div>
					<div class="6u 12u(mobile)">
						<input type="text" name="name" placeholder="" value="回收时间:`+data.object.recoveryDate+`" readonly="readonly"/>
					</div>
		          </div>
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name"  value="回收人角色:`+data.object.recyclingRoteName+`" readonly="readonly"/>
		          	</div>
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="email"  value="领取人角色:`+data.object.sendRoteName+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="回收人:`+data.object.recyclingName+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="领取人:`+data.object.sendName+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="退款金额(元):`+data.object.deposit+`" readonly="readonly"/>
		          	</div>
		          </div>
				  <div class="row 50%">
				  	<div class="12u">
				  		<input type="text" name="subject"  value="创建人:`+data.object.createBy+`" readonly="readonly"/>
				  	</div>
				  	<div class="12u">
				  		<input type="text" name="subject"  value="创建时间:`+data.object.createDate+`" readonly="readonly"/>
				  	</div>
				  </div>
		      `)
			}
		});	
	}else if(window.location.search.substring(4,5)==8){
		$("#title").append("条形码发放记录查看");
		$.ajax({
		     url: URL+"/findBarcodeGrantById?id="+window.location.search.substring(13),
		     type: "get",
		     success: function (data) {
		          console.log(data)
		          $("#form").append(`
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name" placeholder="" value="条形码发放ID:`+data.id+`" readonly="readonly"/>
		          	</div>
					<div class="6u 12u(mobile)">
						<input type="text" name="name" placeholder="" value="条形码ID:`+data.barcodeId+`" readonly="readonly"/>
					</div>
		          </div>
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name"  value="发放档口:`+data.stallsName+`" readonly="readonly"/>
		          	</div>
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="email"  value="发放时间:`+data.grantDate+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="发放数量:`+data.grantCount+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="开始编号:`+data.startNumber+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="结束编号:`+data.endNumber+`" readonly="readonly"/>
		          	</div>
		          </div>
				  <div class="row 50%">
				  	<div class="12u">
				  		<input type="text" name="subject"  value="发放人:`+data.grantPerson+`" readonly="readonly"/>
				  	</div>
				  	<div class="12u">
				  		<input type="text" name="subject"  value="领取人:`+data.receivePerson+`" readonly="readonly"/>
				  	</div>
					<div class="12u">
						<input type="text" name="subject"  value="创建人:`+data.createBy+`" readonly="readonly"/>
					</div>
				  </div>
		      `)
			}
		});	
	}else if(window.location.search.substring(4,5)==9){
		$("#title").append("条形码回收记录查看");
		$.ajax({
		     url: URL+"/findBarcodeRecoveryById?id="+window.location.search.substring(13),
		     type: "get",
		     success: function (data) {
		          console.log(data)
		          $("#form").append(`
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name" placeholder="" value="条形码退回ID:`+data.id+`" readonly="readonly"/>
		          	</div>
					<div class="6u 12u(mobile)">
						<input type="text" name="name" placeholder="" value="条形码编号:`+data.barcodeId+`" readonly="readonly"/>
					</div>
		          </div>
		          <div class="row 50%">
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="name"  value="发放档口:`+data.stallsName+`" readonly="readonly"/>
		          	</div>
		          	<div class="6u 12u(mobile)">
		          		<input type="text" name="email"  value="回收时间:`+data.recoveryDate+`" readonly="readonly"/>
		          	</div>
		          </div>
		          <div class="row 50%">
		          	<div class="12u">
		          		<input type="text" name="subject"  value="回收人员:`+data.recyclingName+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="送回人员:`+data.sendName+`" readonly="readonly"/>
		          	</div>
		          	<div class="12u">
		          		<input type="text" name="subject"  value="退回数量:`+data.sendbackCount+`" readonly="readonly"/>
		          	</div>
		          </div>
				  <div class="row 50%">
				  	<div class="12u">
				  		<input type="text" name="subject"  value="退回原因:`+data.sendbackCause+`" readonly="readonly"/>
				  	</div>
					<div class="12u">
						<input type="text" name="subject"  value="创建人:`+data.createBy+`" readonly="readonly"/>
					</div>
				  </div>
		      `)
			}
		});	
	}else if(window.location.search.substring(4)==10){
		$("#title").append("脚标机维修编辑");
		$("#form").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="脚标机ID" value="9"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="所属屠宰场" value="江街屠宰场"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="负责人" value="root"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="屠宰场地址" value="广州海珠区滨江街道"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="经度" value="113.23"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="纬度" value="23.16"/>
			</div>
		</div>
		
		<div class="row 50%" style="margin-top:20px">
			<div class="12u">
				<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
			</div>
		</div>
		`);
		startPointMap();
	}else if(window.location.search.substring(4)==11){
		$("#title").append("ID卡发放记录明细");
		$("#form").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="脚标机ID" value="9"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="所属屠宰场" value="江街屠宰场"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="负责人" value="root"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="屠宰场地址" value="广州海珠区滨江街道"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="经度" value="113.23"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="纬度" value="23.16"/>
			</div>
		</div>
		
		<div class="row 50%" style="margin-top:20px">
			<div class="12u">
				<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
			</div>
		</div>
		`);
		startPointMap();
	}else if(window.location.search.substring(4)==12){
		$("#title").append("ID卡发放记录编辑");
		$("#form").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="脚标机ID" value="9"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="所属屠宰场" value="江街屠宰场"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="负责人" value="root"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="屠宰场地址" value="广州海珠区滨江街道"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="经度" value="113.23"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="纬度" value="23.16"/>
			</div>
		</div>
		
		<div class="row 50%" style="margin-top:20px">
			<div class="12u">
				<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
			</div>
		</div>
		`);
		startPointMap();
	}else if(window.location.search.substring(4)==13){
		$("#title").append("ID卡回收记录明细");
		$("#form").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="脚标机ID" value="9"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="所属屠宰场" value="江街屠宰场"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="负责人" value="root"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="屠宰场地址" value="广州海珠区滨江街道"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="经度" value="113.23"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="纬度" value="23.16"/>
			</div>
		</div>
		
		<div class="row 50%" style="margin-top:20px">
			<div class="12u">
				<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
			</div>
		</div>
		`);
		startPointMap();
	}else if(window.location.search.substring(4)==14){
		$("#title").append("ID卡回收记录编辑");
		$("#form").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="脚标机ID" value="9"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="所属屠宰场" value="江街屠宰场"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="负责人" value="root"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="屠宰场地址" value="广州海珠区滨江街道"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="经度" value="113.23"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="纬度" value="23.16"/>
			</div>
		</div>
		
		<div class="row 50%" style="margin-top:20px">
			<div class="12u">
				<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
			</div>
		</div>
		`);
		startPointMap();
	}else if(window.location.search.substring(4)==15){
		$("#title").append("贴标信息明细");
		$("#form").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="脚标机ID" value="9"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="所属屠宰场" value="江街屠宰场"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="负责人" value="root"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="屠宰场地址" value="广州海珠区滨江街道"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="经度" value="113.23"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="纬度" value="23.16"/>
			</div>
		</div>
		
		<div class="row 50%" style="margin-top:20px">
			<div class="12u">
				<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
			</div>
		</div>
		`);
		startPointMap();
	}else if(window.location.search.substring(4)==16){
		$("#title").append("贴标信息编辑");
		$("#form").append(`
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="脚标机ID" value="9"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="6u 12u(mobile)">
				<input type="text" name="name" placeholder="所属屠宰场" value="江街屠宰场"/>
			</div>
			<div class="6u 12u(mobile)">
				<input type="text" name="email" placeholder="脚标机编号" value="13"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="负责人" value="root"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="屠宰场地址" value="广州海珠区滨江街道"/>
			</div>
		</div>
		<div class="row 50%">
			<div class="12u">
				<input type="text" name="subject" placeholder="经度" value="113.23"/>
			</div>
			<div class="12u">
				<input type="text" name="subject" placeholder="纬度" value="23.16"/>
			</div>
		</div>
		
		<div class="row 50%" style="margin-top:20px">
			<div class="12u">
				<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
			</div>
		</div>
		`);
		startPointMap();
	}else if(window.location.search.substring(4,6)==17){
		
		
		$("#title").append("设备状态详情");
		
		$.ajax({
		     url: URL+"MachineChart/find/by/houseId?id="+sessionStorage.getItem("slaughterId"),
		     type: "get",
		     success: function (data) {
		          console.log(data)
				  for(var i=0;i<data.object.length;i++){
				     for(var j=0;j<data.object[i].list.length;j++){
				    	if(data.object[i].list[j].id==window.location.search.substring(14)){
							console.log(data.object[i].list[j])
							
							$("#form").append(`
							<div class="row 50%">
								<div class="6u 12u(mobile)">
									<input type="text" name="name" placeholder="" value="ID:`+data.object[i].list[j].id+`" readonly="readonly"/>
								</div>
								<div class="6u 12u(mobile)">
									<input type="text" name="email"  value="条码机ID:`+data.object[i].list[j].barcodeMachineId+`" readonly="readonly"/>
								</div>
							</div>
							<div class="row 50%">
								<div class="6u 12u(mobile)">
									<input type="text" name="name"  value="条形码剩余:`+data.object[i].list[j].barcodeSurplus+`" readonly="readonly"/>
								</div>
								<div class="6u 12u(mobile)">
									<input type="text" name="email"  value="创建人:`+data.object[i].list[j].createBy+`" readonly="readonly"/>
								</div>
							</div>
							<div class="row 50%">
								<div class="12u">
									<input type="text" name="subject"  value="创建日期:`+data.object[i].list[j].createDate+`" readonly="readonly"/>
								</div>
								<div class="12u">
									<input type="text" name="subject"  value="状态:`+data.object[i].status+`" readonly="readonly"/>
								</div>
								<div class="12u">
									<input type="text" name="subject"  value="用户ID:`+data.object[i].list[j].userId+`" readonly="readonly"/>
								</div>
							</div>
							<div class="row 50%">
								<div class="12u">
									<input type="text" name="subject"  value="阈:`+data.object[i].list[j].threshold+`" readonly="readonly"/>
								</div>
								<div class="12u">
									<input type="text" name="subject"  value="上线时间:`+data.object[i].list[j].loginDate+`" readonly="readonly"/>
								</div>
								<div class="12u">
									<input type="text" name="subject"  value="离线时间:`+data.object[i].list[j].offlineTime+`" readonly="readonly"/>
								</div>
							</div>
							
							<div class="row 50%" style="margin-top:20px">
								<div class="12u">
									<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
								</div>
							</div>
							`);
							break;
						}			  
				    }
				   } 
		     }
		});	 
		
	}else if(window.location.search.substring(4,6)==18){
		console.log()
		$("#title").append("禽类销售状态详情");
		$.ajax({
		     url: URL+"PoultrySales/findAll/chart/by/house?house_id="+sessionStorage.getItem("slaughterId"),
		     type: "get",
		     success: function (data) {
				 for(var i=0;i<data.object.length;i++){
					 if(window.location.search.substring(14)==data.object[i].poultryId){
						 console.log(data.object[i])
						 $("#form").append(`
						 <div class="row 50%">
						 	<div class="6u 12u(mobile)">
						 		<input type="text" name="name" placeholder="" value="家禽ID:`+data.object[i].poultryId+`" readonly="readonly"/>
						 	</div>
						 	<div class="6u 12u(mobile)">
						 		<input type="text" name="email"  value="家禽名称:`+data.object[i].poultryName+`" readonly="readonly"/>
						 	</div>
						 </div>
						 <div class="row 50%">
						 	<div class="6u 12u(mobile)">
						 		<input type="text" name="name"  value="销售去向地址:`+data.object[i].salesAddr+`" readonly="readonly"/>
						 	</div>
						 	<div class="6u 12u(mobile)">
						 		<input type="text" name="email"  value="销售数量:`+data.object[i].salesSum+`" readonly="readonly"/>
						 	</div>
						 </div>
						 <div class="row 50%">
						 	<div class="12u">
						 		<input type="text" name="subject"  value="销售终端ID:`+data.object[i].salesTerminalId+`" readonly="readonly"/>
						 	</div>
						 	<div class="12u">
						 		<input type="text" name="subject"  value="销售终端名称:`+data.object[i].salesTerminalName+`" readonly="readonly"/>
						 	</div>
						 	<div class="12u">
						 		<input type="text" name="subject"  value="周:`+data.object[i].week+`" readonly="readonly"/>
						 	</div>
						 </div>
						 <div class="row 50%">
						 	<div class="12u">
						 		<input type="text" name="subject"  value="贴标日期:`+data.object[i].labelingDate+`" readonly="readonly"/>
						 	</div>
						 	<div class="12u">
						 		<input type="text" name="subject"  value="条码机ID:`+data.object[i].barcodeMachineId+`" readonly="readonly"/>
						 	</div>
						 	<div class="12u">
						 		<input type="text" name="subject"  value="脚标机编号:`+data.object[i].barcodeNumber+`" readonly="readonly"/>
						 	</div>
						 </div>
						 <div class="row 50%">
						 	<div class="12u">
						 		<input type="text" name="subject"  value="销售产地:`+data.object[i].houseName+`" readonly="readonly"/>
						 	</div>
						 	<div class="12u">
						 		<input type="text" name="subject"  value="销售产地地址:`+data.object[i].houseAddr+`" readonly="readonly"/>
						 	</div>
						 	<div class="12u">
						 		<input type="text" name="subject"  value="销售产地经度:`+data.object[i].houseLatitude+`" readonly="readonly"/>
						 	</div>
							<div class="12u">
								<input type="text" name="subject"  value="销售产地纬度:`+data.object[i].houseLongitude+`" readonly="readonly"/>
							</div>
						 </div>
						 <div class="row 50%" style="margin-top:20px">
						 	<div class="12u">
						 		<div id="allmap" style="width: 19.75rem;height: 12.5rem;"></div>
						 	</div>
						 </div>
						 `);
						 break;
					 }
				  } 
			 },
		})

	}else{
		
	}
	
</script>
</body>
</html>